package edu.nus.iss.t5.jass.view;

import java.awt.BorderLayout;
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;

import javax.swing.JFrame;

import edu.nus.iss.t5.jass.controller.JobAdvertisementController;
/**
 * This class creates First Main Frame for Job Adv to process searching and showing results,
 * It also add some actions to call delete, update, add, jobresponse funtions.
 * @author TMH
 */
public class JobSearchAdvertisementFrame extends JFrame implements ActionListener{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	SearchPanel searchPanel;
	ResultPanel resultPanel;
	public JobSearchAdvertisementFrame(){
		searchPanel = new SearchPanel();
		resultPanel = new ResultPanel();
		searchPanel.registerResultPanel(resultPanel);
		getContentPane().add(searchPanel, BorderLayout.NORTH);
		getContentPane().add(resultPanel, BorderLayout.CENTER);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);		
	}
	
	public void windowClosed(WindowEvent e){
        System.exit(0);
	}

	public void actionPerformed(ActionEvent arg0) {
		// TODO Auto-generated method stub
		
	}
	
	
}
